<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Expires" content="0">
    <link rel="stylesheet" href="css/public.css">
    <link rel="stylesheet" href="css/mescroll.min.css">
    <link rel="stylesheet" href="css/order.css">
    <title>订单列表</title>
</head>

<body>
    <div id="app" class="flex_v flex " v-cloak>
        <div class="header flex_hm flex_hc">
            <div class="headerItem flex_hm flex_hc flex1" :class="state==0?'active':''" @click="tabToogle(0)">全部</div>
            <div class="headerItem flex_hm flex_hc flex1" :class="state==1?'active':''" @click="tabToogle(1)">充电中</div>
            <div class="headerItem flex_hm flex_hc flex1" :class="state==2?'active':''" @click="tabToogle(2)">已完成</div>
        </div>
        <div class="content flex1 bgf0 hide"  :class="showApp?'showBox':''">
            <div class="mescroll" ref="mescroll" id="mescroll">
                <div class="orderView" v-if="list.length>0">
                    <div class="orderCell flex_hm " v-for='(item , index) in list' @click="gotDetail(item.cdzId,item.chargeState)">
                        <div class="orderCell_icon"><img src="img/order/icon.png" alt=""></div>
                        <div class="orderCell_body flex_hm flex_v flex_hc flex1">
                            <div class="orderCell_body_name">{{item.cdzName?item.cdzName:''}}</div>
                            <div class="orderCell_body_time">{{item.payTime}}</div>
                        </div>
                        <div class="orderCell_hd flex_hm flex_hc flex_v">
                            <div class="orderCell_hd_money">{{item.money}}元</div>
                            <div class="orderCell_hd_state " v-if="item.chargeState==2">已完成</div>
                            <div class="orderCell_hd_state " v-if="item.chargeState==1">未充电</div>
                            <div class="orderCell_hd_state orderCell_hd_stateing" v-if="item.chargeState==0">充电中</div>
                        </div>
                        <div class="rightIcon"></div>
                    </div>
                </div>
                <div v-if="load&&list.length<1" class="nodata flex_hm flex_hc flex_v " >
                    <img src="img/order/nodata.png" alt="">
                    <div class="nodataText">暂无数据</div>
                </div>
            </div>
        </div>
    </div>
    <script src="js/vue.js"></script>
    <script src="js/vue-resource.js"></script>
    <script src="js/mescroll.min.js"></script>
    <script src="js/index.js"></script>
    <script src="js/order.js"></script>
    <!-- <script src="js/vconsole.min.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript">
        var vConsole = new VConsole();
    </script> -->
</body>

</html>